<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 页脚模块 -->
<footer id="footer" th:fragment="footer">

    <!-- 社交链接，需要填入 href class title -->
    <div id="footer_deal">
        <th:block th:with="socialMedias = ${theme.config.footer.social_media.socialMediaLeft}">
            <a class="deal_link" rel="external nofollow" target="_blank" th:each="socialMedia : ${socialMedias}"
               th:href="${socialMedia.url}" th:title="${socialMedia.name}">
                <i class="iconfont " th:classappend="${socialMedia.icon}"></i>
            </a>
        </th:block>

        <img th:if="${not #strings.isEmpty(theme.config.footer.social_media.centerImg)}" class="footer_mini_logo"
             th:src="@{${theme.config.footer.social_media.centerImg}}" title="返回顶部" onclick="btf.scrollToDest(0, 500)">
        <th:block th:with="socialMedias = ${theme.config.footer.social_media.socialMediaRight}">
            <a class="deal_link" rel="external nofollow" target="_blank" th:each="socialMedia : ${socialMedias}"
               th:href="${socialMedia.url}" th:title="${socialMedia.name}">
                <i class="iconfont " th:classappend="${socialMedia.icon}"></i>
            </a>
        </th:block>
    </div>

    <!-- 相关地址  -->
    <th:block th:if="${not #strings.isEmpty(theme.config.footer.menu)}"
              th:with="footMenu = ${menuFinder.getByName(theme.config.footer.menu)}">
        <div id="heo-footer" th:if="${not #lists.isEmpty(footMenu)}">
            <div class="footer-group" th:each="menuItem : ${footMenu.menuItems}">
                <h3 class="footer-title" th:text="${menuItem.status.displayName}"></h3>
                <div class="footer-links">
                    <a class="footer-item" th:each="childMenu : ${menuItem.children}"
                       th:href="@{${childMenu.status.href}}"
                       th:target="${childMenu.spec.target?.value}"
                       th:text="${childMenu.status.displayName}">
                    </a>
                </div>
            </div>
            <div th:if="${theme.config.footer.footer_group.enable_footer_group}" class="footer-group">
                <div class="footer-title-group">
                    <h3 class="footer-title">友链</h3><a class="random-friends-btn"
                                                         href="javascript:heo.addFriendLinksInFooter();"
                                                         rel="external nofollow" title="换一批友情链接"
                                                         data-pjax-state="external"><i
                        class="haofont hao-icon-arrow-rotate-right"></i></a>
                </div>
                <div class="footer-links" id="friend-links-in-footer"></div>
            </div>
        </div>

    </th:block>
    <!-- 底部 banner -->

    <halo:footer />

    <div th:if="${theme.config.footer.footerContent.footerStyle == 'default'}" id="footer-banner">
        <div class="footer-banner-links">
            <div class="footer-banner-left">
                <div id="footer-banner-tips">
                    <div class="copyright" th:if="${not #strings.isEmpty(theme.config.basics.siteStartTime)}">
                        ©[[${#strings.arraySplit(theme.config.basics.siteStartTime, '-')[0]}]] - [[${#dates.format(new
                        java.util.Date(), 'yyyy')}]]
                    </div>
                    <div class="copyright" th:if="${#strings.isEmpty(theme.config.basics.siteStartTime)}">
                        ©[[${#dates.format(new java.util.Date(), 'yyyy')}]]
                    </div>
                </div>
                <br>
                <div>
                    &nbsp;
                    By <a class="footer-banner-link" href="/" target="_blank">[[${site.title}]]</a>
                </div>
            </div>
            <div class="footer-banner-right">
                <!-- 订阅 需要 RSS 插件支持 -->
                <a class="footer-banner-link" href="/sitemap.xml"
                   th:if="${pluginFinder.available('PluginSitemap')}">订阅</a>
                <a class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a>
                <a class="footer-banner-link" href="/about">关于</a>
                <a class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index"
                   rel="noopener external nofollow noreferrer noopener" target="_blank">[[${theme.config.basics.icp}]]
                </a>
                <a class="footer-banner-link" th:href="@{'http://www.beian.gov.cn/portal/registerSystemInfo'}"
                   rel="noopener external nofollow noreferrer noopener"
                   target="_blank">[[${theme.config.basics.gongan}]]
                </a>
                <a class="footer-banner-link cc" th:href="${theme.config.basics.copyrightAgreement}"
                   th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement)}" title="cc协议">
                    <i class="iconfont icon-cc"></i>
                    <i class="iconfont icon-by"></i>
                    <i class="iconfont icon-nc"></i>
                    <i class="iconfont icon-nd"></i>
                </a>
            </div>
        </div>
    </div>

    <th:block  th:if="${theme.config.footer.footerContent.footerStyle == 'one'}">
        <div class="copyright" th:if="${not #strings.isEmpty(theme.config.basics.siteStartTime)}">
            ©[[${#strings.arraySplit(theme.config.basics.siteStartTime, '-')[0]}]] - [[${#dates.format(new
            java.util.Date(), 'yyyy')}]] By [[${site.title}]]
        </div>
        <div class="copyright" th:if="${#strings.isEmpty(theme.config.basics.siteStartTime)}">
            ©[[${#dates.format(new java.util.Date(), 'yyyy')}]] By [[${site.title}]]
        </div>
        <div th:if="${theme.config.footer.footerContent.style_one.runtime_enable}" id="workboard"></div>
        <p id="ghbdages"
           th:with="bdageitem = ${theme.config.footer.footerContent.style_one.bdageitem}">
            <a class="github-badge" th:each="data : ${bdageitem}" target="_blank"
               th:href="@{${data.link}}" style="margin-inline:5px"
               th:title="${data.message}">
                <img th:src="@{${data.shields}}"
                     th:alt="${data.message}" />
            </a>
        </p>
        <span style="padding: 20px 20px;">

        </span>

        <style>
            [data-theme="light"] .copyright,#ghbdages,#workboard{
                color: var(--font-color);
            }
            .copyright,#ghbdages,#workboard {
                position: relative;
                padding: 0px 20px;
                text-align: center;
            }
        </style>
    </th:block>

    <!-- 右下角 snackbar 弹窗 -->
    <div th:if="${theme.config.tool.snackbar.switch}" class="needEndHide" id="cookies-window">
        <div class="cookies-window-title" th:text="${theme.config.tool.snackbar.introductionTitle}"></div>
        <div class="cookies-window-content"><span class="cookies-tip"
                                                  th:text="${theme.config.tool.snackbar.introductionTip}"></span>
            <a class="cookies-link"
               th:href="@{${theme.config.tool.snackbar.introductionUrl}}"
               th:title="${theme.config.tool.snackbar.introductionName}" data-pjax-state=""><i
                    class="bber-gotobb fas fa-arrow-circle-right"></i></a></div>
    </div>
    <div id="quit-box" onclick="RemoveRewardMask()"></div>



    <!--评论弹幕弹窗 -->
    <div th:if="${theme.config.comments.twikooEnable && #strings.equals(theme.config.comments.use, 'Twikoo') && not #strings.isEmpty(theme.config.comments.twikoos.envId)
    && not #strings.isEmpty(theme.config.comments.twikoos.accessToken)}" class="comment-barrage needEndHide"
         style="display: none;"></div>


</footer>

</html>